package com.ruoyi.webContent.service.impl;

import java.util.List;

import com.ruoyi.webContent.domain.PlHostTrade;
import com.ruoyi.webContent.mapper.PlHostTradeMapper;
import com.ruoyi.webContent.service.IPlHostTradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.core.text.Convert;

/**
 * 网站交易Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-04-18
 */
@Service
public class PlHostTradeServiceImpl implements IPlHostTradeService
{
    @Autowired
    private PlHostTradeMapper plHostTradeMapper;

    /**
     * 查询网站交易
     * 
     * @param hostAMarketIdHostBMarketId 网站交易ID
     * @return 网站交易
     */
    @Override
    public PlHostTrade selectPlHostTradeById(String hostAMarketIdHostBMarketId)
    {
        return plHostTradeMapper.selectPlHostTradeById(hostAMarketIdHostBMarketId);
    }

    /**
     * 查询网站交易列表
     * 
     * @param plHostTrade 网站交易
     * @return 网站交易
     */
    @Override
    public List<PlHostTrade> selectPlHostTradeList(PlHostTrade plHostTrade)
    {
        return plHostTradeMapper.selectPlHostTradeList(plHostTrade);
    }

    /**
     * 新增网站交易
     * 
     * @param plHostTrade 网站交易
     * @return 结果
     */
    @Override
    public int insertPlHostTrade(PlHostTrade plHostTrade)
    {
        return plHostTradeMapper.insertPlHostTrade(plHostTrade);
    }

    /**
     * 修改网站交易
     * 
     * @param plHostTrade 网站交易
     * @return 结果
     */
    @Override
    public int updatePlHostTrade(PlHostTrade plHostTrade)
    {
        return plHostTradeMapper.updatePlHostTrade(plHostTrade);
    }

    /**
     * 删除网站交易对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePlHostTradeByIds(String ids)
    {
        return plHostTradeMapper.deletePlHostTradeByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除网站交易信息
     * 
     * @param hostAMarketIdHostBMarketId 网站交易ID
     * @return 结果
     */
    @Override
    public int deletePlHostTradeById(String hostAMarketIdHostBMarketId)
    {
        return plHostTradeMapper.deletePlHostTradeById(hostAMarketIdHostBMarketId);
    }
}
